package com.zixun.repository.request;

import com.zixun.model.information.InformationImage;
import com.zixun.model.request.RequestImage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Created by Basil on 16/8/23.
 */
public interface RequestImageRespository extends JpaRepository<RequestImage,Integer>{

    @Query("select image from RequestImage image where image.requestId = :id")
    List<RequestImage> findByRequestId(@Param("id") Integer id);
}
